package com.gzy.android_douban.ui.home;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Toast;

import com.gzy.android_douban.databinding.ActivityPromulgateBinding;

public class PromulgateActivity extends AppCompatActivity {
    ActivityPromulgateBinding binding;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        binding = ActivityPromulgateBinding.inflate(getLayoutInflater());
        setContentView(binding.getRoot());

        initClick();

    }

    private void initClick() {
        binding.imgBackbtn.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Toast.makeText(PromulgateActivity.this, "1212", Toast.LENGTH_SHORT).show();
                Intent intent =  new Intent(PromulgateActivity.this,HomeFragment.class);
                finish();
            }
        });
    }
}